from loguru import logger
import json
from config import DatasetsConfig
class base(object):
    def __init__(self, cfg) -> None:
        self.base_cfg = cfg.get("Base")
        self.train_cfg = cfg.get("Train")
        info_path = cfg.get('Base')['datasets_info']
        self.dataset_cfg = DatasetsConfig(info_path)
        logger.add("./log/mht_{time}.log")
    def info(self, content):
        logger.info(content)

    def debug(self, content):
        logger.debug(content)

    def error(self, content):
        logger.error(content)